﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="{PE.Label id="网站信息配置中的关键字" /}" name="Keywords" />
<meta content="{PE.Label id="网站信息配置中网站描述" /}" name="Description"/>
<title>投票列表页</title>
<link href="{PE.SiteConfig.SkinPath/}default.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{PE.SiteConfig.ApplicationPath/}JS/Common.js"></script>
</head>
<body>
{PE.Label id="商城网站顶部(首页)" /}
<!-- 中部 center_all 开始-->
<div id="center_all">
<div id="main_bg">
  <div id="main_right">
    <div id="main_right_box">
      <!-- 网站位置导航信息开始 -->
      <div class="r_navigation">
        <div class="r_n_pic"></div>
        您现在的位置：<a href="{PE.SiteConfig.sitepath/}">{PE.SiteConfig.SiteName /}</a> >>投票列表</div>
        <!-- 网站位置导航信息结束 -->
        <div class="c_spacing"></div>
        <div class="c_main_box">
          <div class="c_title"> 投票列表</div>
          <div class="c_content"> 
            {PE.Label id="投票主题列表(分页)" titleLength="50" usepage="true" page="true"  pagesize="5"/}
          <div class="c_bot"> </div>
        </div>
        <div class="class_page">{PE.Page id="url_基本风格" datasource="投票主题列表(分页)" span="span"/}</div>
      </div>
    </div>
    </div>
    <!--这里定义左侧 -->
    </div>
</div>
</div>
<!-- 中部 center_all 结束 -->
{PE.Label id="会员中心底部信息" /}
<script language="javascript" type="text/javascript">
function changepage(pagenum,sourcename,spanname)
{
    var x = new AjaxRequest('XML','pe100_' + sourcename);
    x.labelname = sourcename;
    x.currentpage = pagenum; 
	x.para = ['itemId=@RequestInt_id', 'page=true', 'pagesize=10','currentPage='+pagenum];
	x.post('updatelabel', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s) {
        var xml = x.createXmlDom(s);
        var plstr = "";
        for (var i=0; i<xml.getElementsByTagName("body")[0].childNodes.length; i++)     
        {
            plstr += xml.getElementsByTagName("body")[0].childNodes[i].nodeValue;
        }
        $("pe100_" + sourcename).innerHTML = plstr;
        updatepage(spanname, sourcename, xml);
    });
}

function updatepage(spanname, sourcename, xml)
{
    if(parseInt(xml.getElementsByTagName("total")[0].firstChild.data) > 0)
    {
        var x = new AjaxRequest('XML','pe100_page_' + sourcename);
        x.labelname = spanname;
        x.sourcename = sourcename;
        x.total = xml.getElementsByTagName("total")[0].firstChild.data;
        x.currentpage = xml.getElementsByTagName("currentpage")[0].firstChild.data;
        x.pagesize = xml.getElementsByTagName("pagesize")[0].firstChild.data;
        x.post('updatepage', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s) {
            var xml = x.createXmlDom(s);
            if ($("pe100_page_" + sourcename) != null) {
                var plstr = "";
                for (var i = 0; i < xml.getElementsByTagName("body")[0].childNodes.length; i++) {
                    plstr += xml.getElementsByTagName("body")[0].childNodes[i].nodeValue;
                }
               
                $("pe100_page_" + sourcename).innerHTML = plstr;
            }
        });
    }
}
</script>
</body>
</html>
